package com.wl.application.feign.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author wl
 * @version 1.0
 * @date 2022/7/27
 * @description:
 */
@FeignClient(value = "server-2",path = "/server2")
public interface Server2Api {

    @GetMapping("/test")
    String serverText();

    @PostMapping("/timeout")
    public String timeout();
}
